From b4c64fb4437dfcea6e5d8421d9e55ae1ddb29da2 Mon Sep 17 00:00:00 2001 From: Andres Lagar-Cavilla Date: Thu, 24 Nov 2011 15:45:19 +0000 Subject: [PATCH] Properly compare "pci" token when groking serial port config Signed-off-by: Andres Lagar-Cavilla Committed-by: Keir Fraser --- xen/drivers/char/ns16550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index e09e30ddef..68c3649354 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -554,7 +554,7 @@ static void __init ns16550_parse_port_config( if ( *conf == ',' ) { conf++; - if ( strncmp(conf, "pci", 5) == 0 ) + if ( strncmp(conf, "pci", 3) == 0 ) { if ( pci_uart_config(uart, 1/* skip AMT */, uart - ns16550_com) ) return; -- 2.30.2